package axb;

public class book {
    private int id;
    private String bookname, author, remark;
    private double price;

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookname() {
        if (this.bookname == null)
            this.bookname = "";
        return this.bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        if (this.author == null)
            this.author = "";
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        if (this.remark == null)
            this.remark = "";
        this.remark = remark;
    }

    public double getPrice() {
        return this.price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}